package com.server;

import com.entiliy.Emp;
import com.mapper.EmpdMapper;
import org.springframework.cache.annotation.CachePut;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class Empserverimp implements Empdao{
    @Resource
    EmpdMapper emp;
    @Override
    @CachePut(value = "Emp")
    public List<Emp> select() {
        return emp.select();
    }

    @Override
    @CachePut(key ="#test",value = "test")
    public int insert(String test) {
        int i=emp.insert(test);
        return i;
    }
}
